import * as API from '../../util/server.js'

export default {

  // 创建知识
  saveVideo(param){ return API.POST('/api/study/video/saveVideo',param)},

  // id查找
  getVideoById(id){ return API.GET(`/api/study/video/getVideoById/${id}`)},

  // 文件夹id查找
  getVideoByFolder(id){ return API.GET(`/api/study/video/getVideoByFolder/${id}`)},

  // 视频点赞数倒叙查询
  getVideoByHot(){ return API.GET(`/api/study/video/getVideoByHot`)},

  // 保存视频回复信息
  saveVideoNote(param){ return API.POST('/api/study/video/saveVideoNote',param)},

  // 获取视频评论
  getVideoNote(videoId){ return API.GET(`/api/study/video/getVideoNote/${videoId}`)},

  // 收藏
  saveCollection(param){ return API.POST('/api/study/video/saveCollection',param)},

  // 点赞
  saveThumbsUp(param){ return API.POST('/api/study/video/saveThumbsUp',param)},

  // 取消收藏
  deleteCollection(id){ return API.DELETE(`/api/study/video/deleteCollection/${id}`)},

  // 取消点赞
  deleteThumbsUp(id){ return API.DELETE(`/api/study/video/deleteThumbsUp/${id}`)}

}
